package com.loan.vo;

import com.loan.entity.Contract;
import com.loan.group.ContractSingleSelectGroup;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: ContractVO 主要用于接收前端传入的数据
 * @Author: wYin
 * @Date: 2022/1/19 21:02
 */
@Data
public class ContractVO {
    @NotNull(message = "选择的合同信息不能为空",groups = {ContractSingleSelectGroup.class})
    @Valid
    private Contract contract;//主要用于接收合同编号、业务员ID、合同id
    private Integer userId;//主要用户验证用户登录查看贷款信息
}
